function AlertMsg(text){
	Controller.apply(this,['<div class="col-xs-12 form-group alert alert-success fade in AlertMsg" data-alert="alert">'+text+'</div>']);
}
AlertMsg.prototype = Object.create(Controller.prototype);
AlertMsg.prototype.constructor = AlertMsg;

AlertMsg.prototype.setText = function(text){
	this.htmlX.html(text);
};
AlertMsg.prototype.getText = function(){
	this.htmlX.text();
};
AlertMsg.prototype.setValue = function(text){
	this.setText(text);
};
AlertMsg.prototype.getValue = function(){
	this.getText();
};
AlertMsg.prototype.show = function(pshow){
	if(pshow){
		this.htmlX.show();
	}else{
		this.htmlX.hide();
	}
};
AlertMsg.prototype.setType = function(ptype){
	var ptypes = {
		"s":"success",
		"i":"info",
		"w":"warning",
		"d":"danger",
		"e":"danger"
		};
	var classes = this.htmlX.attr("class");
	var ns = classes.replace(/alert\-([^\s]*)/,"alert-"+ptypes[ptype]);
	this.htmlX.removeClass().addClass(ns);
};